package chapter1;

import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入专业：");
        String subject = scanner.next();
        System.out.println("请输入姓名：");
        String name = scanner.next();
        System.out.println("欢迎"+subject+"专业的"+name+"同学开始学习面向对象程序设计！");
    }
}
